<?foreach($messages->all() as $name => $message):?>
    <div class="errors">
        <?= $name . ": " . $message[0]?>
        
    </div>
<? endforeach; ?>

